using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 新增比赛分组dto
    /// </summary>
    public class GameGroupAddDto
    {
        /// <summary>
        /// 比赛ID
        /// </summary>
        [Required(ErrorMessage = "比赛ID必填")]
        public Guid GameId { get; set; }

        /// <summary>
        /// 对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双
        /// </summary>
        [Required(ErrorMessage = "对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双必填")]
        public int VersusType { get; set; }

        /// <summary>
        /// 组名
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "组名必填")]
        [StringLength(255, ErrorMessage = "组名不能超过255个字符")]
        public string GroupName { get; set; }

        /// <summary>
        /// 组序号
        /// </summary>
        [Required(ErrorMessage = "组序号必填")]
        public int GroupNo { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [StringLength(10, ErrorMessage = "开始时间不能超过10个字符")]
        public string? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [StringLength(10, ErrorMessage = "结束时间不能超过10个字符")]
        public string? EndTime { get; set; }

        /// <summary>
        /// 地点
        /// </summary>
        [StringLength(100, ErrorMessage = "地点不能超过100个字符")]
        public string? Address { get; set; }
    }
}
